import request from "../utils/request";
export function selectStudentAwardsByForm(queryForm) {
    return request({
        url: '/studentAwards/selectStudentAwardsByForm',
        method: 'post',
        data: queryForm,
    })
}
//老师功能，查看与自己对应的奖项申请状况
export function SelectAllStudentAwardByTeacherId(teacherId) {
    return request({
        url: '/studentAwards/SelectAllStudentAwardByTeacherId',
        method: 'get',
        params: { teacherId }
    })
}
//老师功能查看申请奖项信息通过奖项名称，奖项用户名，奖项状态，奖项结果
export function SelectAllStudentAwardByInfo(teacherId,title,userName,status,result) {
    return request({
        url: '/studentAwards/SelectAllStudentAwardByInfo',
        method: 'get',
        params: { teacherId,title,userName,status,result }
    })
}
//管理员功能查看所有奖项信息通过奖项名称，奖项用户名，奖项状态，奖项结果,奖项审核人
export function SelectAllStudentAwardBySecondInfo(title,studentName,status,result,teacherName) {
    return request({
        url: '/studentAwards/SelectAllStudentAwardBySecondInfo',
        method: 'get',
        params: { title,studentName,status,result,teacherName }
    })
}
//学生功能，通过学生id得到自己所有的奖项
export function SelectAllAwardByUserId(id) {
    return request({
        url: '/studentAwards/SelectAllAwardByUserId',
        method: 'get',
        params: { id }
    })
}
export function updateStudentAwardsByForm(queryForm) {
    return request({
        url: '/studentAwards/UpdateStudentAwardsByForm',
        method: 'post',
        data: queryForm,
    })
}
//通过学生奖项id加载相关内容
export function loadStudentAwardFormById(id) {
    return request({
        url: '/studentAwards/LoadStudentAwardFormById',
        method: 'get',
        params: { id }
    })
}
//管理员查询所有奖项信息
export function SelectAllStudentAward() {
    return request({
        url: '/studentAwards/SelectAllStudentAward',
        method: 'get',
    })
}
//管理员得到每个状态对应的数量
export function getAwardStatusNumberList() {
    return request({
        url: '/studentAwards/GetAwardStatusNumberList',
        method: 'get',
    })
}

